﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ScrumTime.Models.AcceptanceCriteria>" %>


    <%
        string AcceptanceCriteriaId = Model.AcceptanceCriteriaId.ToString();
        if (Model.AcceptanceCriteriaId < 1)
            AcceptanceCriteriaId = "---";
     %>
    <tr id="AcceptanceCriteriaRow_<%: Model.AcceptanceCriteriaId %>" class="taskRow">
        <td style="vertical-align:middle;text-align:center;width:80px;border:0px;font-size:11px;"><%: AcceptanceCriteriaId%></td>
        <td style="border:0px;"><textarea id="AcceptanceCriteriaAcceptanceCriteria1_<%: Model.AcceptanceCriteriaId %>"  rows="3" style="width:100%;font-family:Verdana;"><%: Model.AcceptanceCriteria1%></textarea></td>
        <td style="border:0px;"><textarea id="AcceptanceCriteriaDescription_<%: Model.AcceptanceCriteriaId %>" rows="3" style="width:100%;font-family:Verdana;"><%: Model.Description %></textarea></td>
        <td style="vertical-align:middle;text-align:center;width:194px;border:0px;"><a href="#" class="noticableLink" onclick="saveAcceptanceCriteriaRowEdit(<%: Model.AcceptanceCriteriaId %>, <%: Model.StoryId %> );">Save</a> | <a href="#" class="noticableLink" onclick="cancelAcceptanceCriteriaRowEdit(<%: Model.AcceptanceCriteriaId %>, <%: Model.StoryId %> );">Cancel</a></td>
    </tr>